package com.dingwen.treasure.kettle.dto.modify;

import com.dingwen.treasure.kettle.enums.TaskStateEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * 　QuartzInfoStateDTO: 定时任务修改状态DTO
 * 　@author dingwen
 * 　@date 2022/5/18$
 */
@ApiModel(value = "TaskInfoStateDto", description = "修改任务状态")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
@ToString
public class TaskInfoStateDto {

    /**
     * 主键
     */
    @NotNull(message = "任务Id不能为空")
    @ApiModelProperty(value = "任务id", dataType = "Long", required = true)
    private Long taskId;

    /**
     * 是否启用: {@link TaskStateEnum}
     */
    @NotNull(message = "任务状态不能为空")
    @ApiModelProperty(value = "任务状态", dataType = "TaskStateEnum", required = true)
    private TaskStateEnum state;
}
